import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
import Index from '../views/MyIndex.vue'
import Test from '../views/MyTest.vue'
import About from '../views/MyAbout.vue'
const routes = [
  { path: '/', component: Index },
  {path: '/test', component: Test},
  {path: '/about', component: About}
]

const router =new VueRouter({
  mode: 'history',
  routes,
})

export default router;